﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="AreaWarningList.aspx.cs" Inherits="HZ.Supervise.Web.Message.AreaWarningList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="WarningList.aspx">已处理预警</a></li>
            <li ><a href="UntreatedWarningList.aspx">未处理预警</a></li>
        </ul>
        <ul>
            <li class="active"><a href="WarningList.aspx">医院预警(共<asp:Label ID="lblHospitlWarning" runat="server" Text="Label"></asp:Label>个)</a></li>
            <li class="active"><a href="#">地区预警(共<asp:Label ID="lblAreaWarning" runat="server" Text="Label"></asp:Label>个)</a></li>
            <li class="active"><a href="CompanyWarningList.aspx">企业预警(共<asp:Label ID="lblCompanyWarning" runat="server" Text="Label"></asp:Label>个)</a></li>
            <li class="active"><a href="GoodsWarningList.aspx">药品预警(共<asp:Label ID="lblGoodsWarning" runat="server" Text="Label"></asp:Label>个)</a></li>
            <li class="active"><a href="TimeWarningList.aspx">时间预警(共<asp:Label ID="lblTimeWarning" runat="server" Text="Label"></asp:Label>个)</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                触警地区：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtWarningUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                药品类别：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlSort" runat="server">
                                    <asp:ListItem Text="精神类" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="麻醉" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="抗生素" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                药品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                响应类别：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DropDownList1" runat="server">
                                    <asp:ListItem Text="医院已提交采购单企业未确认" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="类别2" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="类别3" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                            
                        <tr>
                            <td align="right">
                                预警数量：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtWarningCount" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                预警时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBox2" MaxLength="25" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                触警时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBox3" MaxLength="25" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                预警级别
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DropDownList2" runat="server">
                                    <asp:ListItem Text="一级预警" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="二级预警" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="三级预警" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwWaringList" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的投诉信息！">
        
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="触警地区" DataField="WarningDepart" />
            <asp:BoundField HeaderText="药品类别" DataField="Sort"/>
            <asp:BoundField HeaderText="药品名称" DataField="GoodsName"/>
            <asp:BoundField HeaderText="预警数量" DataField="WarningCount"/>
            <asp:BoundField HeaderText="采购数量" DataField="WarningCount"/>
            <asp:BoundField HeaderText="预警金额" DataField="WarningCount"/>
            <asp:BoundField HeaderText="采购金额" DataField="WarningCount"/>
            <asp:BoundField HeaderText="响应类型" DataField="type"/>
            <asp:BoundField HeaderText="预警时间" DataField="time"/>
            <asp:BoundField HeaderText="触警时间" DataField="time"/>
            <asp:BoundField HeaderText="是否处理" DataField="IsCheck"/>
            <asp:BoundField HeaderText="处理时间" DataField="time"/>
            <asp:BoundField HeaderText="预警级别" DataField="level"/>
            <asp:TemplateField HeaderText="详情">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <a href='#'>详情</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
            onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>